#ifndef CCAMERA_H
#define CCAMERA_H

#include "cpoint3f.h"
#include "QtOpenGL"

class CCamera
{
public:
	CCamera();

	void VectorsFromAngles();

	void look();

	CPoint3f	position;	// absolut position
	CVecteur3f	direction;	// view direction / local z axis
	CVecteur3f	side;		// local x axis
	CVecteur3f	up;			// local y axis
	CPoint3f	_target;	// cible

	double _speed;
	double _sensitivity;

	double _theta;
	double _phi;

	unsigned _window_height;
	unsigned _window_width;
};

#endif // CCAMERA_H
